import React, { Component, PropTypes } from 'react';
import { connect } from 'dva';
import { hashHistory } from 'dva/router';
import styles from '../../routes/IndexPage.css';
import { Icon } from 'antd';
var _state,_props,_this;

class warningModal extends Component {
  constructor(props) {
    super(props);
    this.state = {
      current: [],
    }
  }
  render() {
    _this = this;
    _props = _this.props;
    _state = _this.state;
   // console.log(_props)

    return (
      <div className={styles.warningModal}>
        <div className={styles.waritem}>
          <img src="images/preset05.png"/>
          <div className={styles.warhead}>
            <div>异常报警</div>
            <div>{_props.alarmCount}</div>
          </div>
        </div>
        <div className={styles.waritem}>
          <img src="images/preset06.png"/>
          <div className={styles.warhead}>
            <div>即将报废设备</div>
            <div>{_props.scrapCount}</div>
          </div>
        </div>
        <div className={styles.waritem}>
          <img src="images/preset07.png"/>
          <div className={styles.warhead}>
            <div>预置设备</div>
            <div>{_props.presetCount}</div>
          </div>
        </div>
      </div>
    );
  }
}

module.exports = warningModal
